\hypertarget{fs_8h}{\section{include/fs.h File Reference}
\label{fs_8h}\index{include/fs.\-h@{include/fs.\-h}}
}


Header file for file system.  


\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structEF__st}{E\-F\-\_\-st}
\begin{DoxyCompactList}\small\item\em structure of E\-F file header \end{DoxyCompactList}\item 
struct \hyperlink{structDF__st}{D\-F\-\_\-st}
\begin{DoxyCompactList}\small\item\em structure of D\-F file descriptor \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\hypertarget{fs_8h_ac947e26106aad5ab2f6e1b2b968f1c7d}{\#define {\bfseries F\-S\-\_\-\-O\-K}~0}\label{fs_8h_ac947e26106aad5ab2f6e1b2b968f1c7d}

\item 
\hypertarget{fs_8h_a68484f3c65e02a194dbfd11206fee540}{\#define {\bfseries F\-S\-\_\-\-E\-R\-R\-O\-R}~30}\label{fs_8h_a68484f3c65e02a194dbfd11206fee540}

\item 
\hypertarget{fs_8h_afc53dd89bc9d903f0c819599854098dd}{\#define {\bfseries F\-S\-\_\-\-E\-R\-R\-O\-R\-\_\-\-I\-N\-S\-U\-F\-F\-I\-C\-I\-E\-N\-T\-\_\-\-S\-P\-A\-C\-E}~31}\label{fs_8h_afc53dd89bc9d903f0c819599854098dd}

\item 
\hypertarget{fs_8h_a4b5ae79747e60a75a1c56ee546776a2b}{\#define {\bfseries F\-S\-\_\-\-E\-R\-R\-O\-R\-\_\-\-N\-O\-T\-\_\-\-F\-O\-U\-N\-D}~32}\label{fs_8h_a4b5ae79747e60a75a1c56ee546776a2b}

\item 
\hypertarget{fs_8h_ae9efab7a7d5ac4dde9ed0c32a30b6da3}{\#define {\bfseries F\-S\-\_\-\-E\-R\-R\-O\-R\-\_\-\-D\-U\-P\-L\-I\-C\-A\-T\-E\-\_\-\-F\-I\-D}~33}\label{fs_8h_ae9efab7a7d5ac4dde9ed0c32a30b6da3}

\item 
\hypertarget{fs_8h_af1652799461224d497a1027cbf215b18}{\#define {\bfseries F\-S\-\_\-\-E\-R\-R\-O\-R\-\_\-\-S\-E\-C\-U\-R\-I\-T\-Y\-\_\-\-S\-T\-A\-T\-U\-S}~34}\label{fs_8h_af1652799461224d497a1027cbf215b18}

\item 
\hypertarget{fs_8h_a2be5f2fac86bd4f36fb8a010d579e8c7}{\#define {\bfseries F\-S\-\_\-\-N\-O\-N\-E}~0}\label{fs_8h_a2be5f2fac86bd4f36fb8a010d579e8c7}

\item 
\hypertarget{fs_8h_a63085e97438ff451cb0afe987e93573f}{\#define {\bfseries F\-S\-\_\-\-T\-A\-G\-\_\-\-M\-F}~0x3\-F}\label{fs_8h_a63085e97438ff451cb0afe987e93573f}

\item 
\hypertarget{fs_8h_a8bedb2a28be25c30f6b0d8b37e6af501}{\#define {\bfseries F\-S\-\_\-\-T\-A\-G\-\_\-\-D\-F}~0x4\-F}\label{fs_8h_a8bedb2a28be25c30f6b0d8b37e6af501}

\item 
\hypertarget{fs_8h_a37ae9cacc839c9ed5f4bf979a3283898}{\#define {\bfseries F\-S\-\_\-\-T\-A\-G\-\_\-\-E\-F}~0x5\-F}\label{fs_8h_a37ae9cacc839c9ed5f4bf979a3283898}

\item 
\hypertarget{fs_8h_add4a3eea87365b474c0bf9c4a366af98}{\#define {\bfseries F\-S\-\_\-\-E\-F\-\_\-\-S\-T\-R\-U\-C\-T\-U\-R\-E\-\_\-\-T\-R\-A\-N\-S\-P\-A\-R\-E\-N\-T}~0}\label{fs_8h_add4a3eea87365b474c0bf9c4a366af98}

\item 
\hypertarget{fs_8h_a983283c7932be50381550fb7a787c411}{\#define {\bfseries F\-S\-\_\-\-E\-F\-\_\-\-S\-T\-R\-U\-C\-T\-U\-R\-E\-\_\-\-R\-E\-C\-O\-R\-D}~1}\label{fs_8h_a983283c7932be50381550fb7a787c411}

\item 
\hypertarget{fs_8h_a349794511753ce60afd3735153b43c9e}{\#define {\bfseries F\-S\-\_\-\-E\-F\-\_\-\-S\-T\-R\-U\-C\-T\-U\-R\-E\-\_\-\-C\-Y\-C\-L\-I\-C}~3}\label{fs_8h_a349794511753ce60afd3735153b43c9e}

\item 
\hypertarget{fs_8h_aa6956f29b0fb9ed5b2033200d9d9dfed}{\#define {\bfseries F\-S\-\_\-\-E\-F\-\_\-\-T\-Y\-P\-E\-\_\-\-W\-O\-R\-K\-I\-N\-G}~0}\label{fs_8h_aa6956f29b0fb9ed5b2033200d9d9dfed}

\item 
\hypertarget{fs_8h_a6ad8729a4b05e9821581398d7590720d}{\#define {\bfseries F\-S\-\_\-\-E\-F\-\_\-\-T\-Y\-P\-E\-\_\-\-I\-N\-T\-E\-R\-N\-A\-L}~1}\label{fs_8h_a6ad8729a4b05e9821581398d7590720d}

\item 
\hypertarget{fs_8h_a4ab6e57b445956a644c6bc4bdff8ddb3}{\#define {\bfseries F\-S\-\_\-\-O\-P\-\_\-\-R\-E\-A\-D}~0}\label{fs_8h_a4ab6e57b445956a644c6bc4bdff8ddb3}

\item 
\hypertarget{fs_8h_a6cb52882220dbb1378db9cb09f8dcd79}{\#define {\bfseries F\-S\-\_\-\-O\-P\-\_\-\-U\-P\-D\-A\-T\-E}~1}\label{fs_8h_a6cb52882220dbb1378db9cb09f8dcd79}

\end{DoxyCompactItemize}
\subsection*{Enumerations}
\begin{DoxyCompactItemize}
\item 
enum \hyperlink{group__fs_gae0b7a8fdbb83d5bdeaf6ee5bab8054fe}{ef\-\_\-struct} \{ \hyperlink{group__fs_ggae0b7a8fdbb83d5bdeaf6ee5bab8054feac719d3f34968bcf992d4c0c48841cf63}{Transparent}, 
\hyperlink{group__fs_ggae0b7a8fdbb83d5bdeaf6ee5bab8054feae0da40ac190d835380202f40a9fc76eb}{Record}, 
\hyperlink{group__fs_ggae0b7a8fdbb83d5bdeaf6ee5bab8054fea5aa1e27646a18fb490c0ff4a9b7b2f6e}{Cyclic}
 \}
\begin{DoxyCompactList}\small\item\em E\-F File Structure enumeration. \end{DoxyCompactList}\item 
enum \hyperlink{group__fs_ga6f46d6e4f39750fecff1240810793832}{ef\-\_\-type} \{ \hyperlink{group__fs_gga6f46d6e4f39750fecff1240810793832a7352fd1878874b86d44e973e7b7c046e}{Working}, 
\hyperlink{group__fs_gga6f46d6e4f39750fecff1240810793832aa992d66faf4c155dfd78ec168fc25f8a}{Internal}
 \}
\begin{DoxyCompactList}\small\item\em E\-F File Type enumeration. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{fs_8h_a66ac99b817df3644636eb643894e2e67}{int {\bfseries F\-S\-Format} ()}\label{fs_8h_a66ac99b817df3644636eb643894e2e67}

\item 
int \hyperlink{group__fs_ga5f5f0f157759a32e861b2d8177911353}{F\-S\-Initialize} ()
\begin{DoxyCompactList}\small\item\em Initializer

Initialize file system. \end{DoxyCompactList}\item 
int \hyperlink{group__fs_gafed36802a2254132739776c576c0e53e}{F\-S\-Get\-Header} (uint16\-\_\-t block\-\_\-addr, uint8\-\_\-t offset, uint8\-\_\-t $\ast$dest)
\begin{DoxyCompactList}\small\item\em F\-S\-Get\-Header

File system function to retrieve header information of a file. \end{DoxyCompactList}\item 
\hypertarget{fs_8h_a754d06fefa87ec6feb1d770bcb82645d}{int {\bfseries F\-S\-Create\-Header} (uint8\-\_\-t tag, uint16\-\_\-t fid, uint16\-\_\-t $\ast$addr)}\label{fs_8h_a754d06fefa87ec6feb1d770bcb82645d}

\item 
\hypertarget{fs_8h_aa86a040776d3ed2ca84ff20a019a8fd8}{uint16\-\_\-t {\bfseries F\-S\-Search\-F\-I\-D} (uint16\-\_\-t fid)}\label{fs_8h_aa86a040776d3ed2ca84ff20a019a8fd8}

\item 
int \hyperlink{group__fs_gab1bf818b552bb3c24080e3249112e026}{F\-S\-Select\-M\-F} ()
\begin{DoxyCompactList}\small\item\em select M\-F

File system function to select M\-F \end{DoxyCompactList}\item 
int \hyperlink{group__fs_ga6df8bb917f2541f08f75796623a956a4}{F\-S\-Select\-F\-I\-D} (uint16\-\_\-t fid)
\begin{DoxyCompactList}\small\item\em select with full F\-I\-D

File system function to select a file with full F\-I\-D \end{DoxyCompactList}\item 
int \hyperlink{group__fs_ga11624170ed19096e661a18cf31ae0cfb}{F\-S\-Select\-Path} (uint16\-\_\-t $\ast$path, int length)
\begin{DoxyCompactList}\small\item\em select with path

File system function to select a file with path \end{DoxyCompactList}\item 
int \hyperlink{group__fs_ga9e04aaa657e9c4bcca8323c8779fc687}{F\-S\-Select\-S\-F\-I\-D} (uint8\-\_\-t sfid)
\begin{DoxyCompactList}\small\item\em select with short F\-I\-D

File system function to select a file with short F\-I\-D \end{DoxyCompactList}\item 
int \hyperlink{group__fs_ga697390f044810e38c9308d12109487a9}{F\-S\-Select\-Name} (char $\ast$D\-Fname, uint8\-\_\-t length)
\begin{DoxyCompactList}\small\item\em select with name

File system function to select a D\-F file with name \end{DoxyCompactList}\item 
int \hyperlink{group__fs_ga9f8915bf60a20928be8f7ab9a5750309}{F\-S\-Access\-Binary} (int op, int offset, int length, uint8\-\_\-t $\ast$databyte)
\begin{DoxyCompactList}\small\item\em access a transparent file

File system function to access (read \& update) a transparent file \end{DoxyCompactList}\item 
int \hyperlink{group__fs_gadee7ce5359cf03ffb89420e4012ca8b9}{F\-S\-Access\-Record} (int op, int record\-Num, int length, uint8\-\_\-t $\ast$databyte)
\begin{DoxyCompactList}\small\item\em access a record file

File system function to access a record file \end{DoxyCompactList}\item 
int \hyperlink{group__fs_ga57bbc0e2b610758d6710826166345004}{F\-S\-Create\-File} (int tag, void $\ast$desc)
\begin{DoxyCompactList}\small\item\em create a new file

File system function to create a file \end{DoxyCompactList}\item 
int \hyperlink{group__fs_gab24d6b7331b45fa5ad94f87244f4ce29}{F\-S\-Delete\-File} (uint16\-\_\-t fid)
\begin{DoxyCompactList}\small\item\em delete a file

File system function to delete a file \end{DoxyCompactList}\item 
\hypertarget{fs_8h_a0b4173bd166c1237a969ceab5c7be432}{int {\bfseries F\-S\-Alloc} (uint16\-\_\-t size, uint16\-\_\-t start\-Block, uint16\-\_\-t end\-Block, uint16\-\_\-t $\ast$address)}\label{fs_8h_a0b4173bd166c1237a969ceab5c7be432}

\item 
\hypertarget{fs_8h_ab9890cd745d067a00a905e8c52356095}{int {\bfseries F\-S\-Alloc\-Header} (uint16\-\_\-t $\ast$address)}\label{fs_8h_ab9890cd745d067a00a905e8c52356095}

\item 
\hypertarget{fs_8h_a7784f7c0428af69a072b03e99eb539db}{int {\bfseries F\-S\-Alloc\-Body} (uint16\-\_\-t $\ast$address, uint16\-\_\-t length)}\label{fs_8h_a7784f7c0428af69a072b03e99eb539db}

\item 
\hypertarget{fs_8h_ad96914af4dcefc5b3d642067f2aa7ad4}{int {\bfseries F\-S\-Free} (uint16\-\_\-t address, uint16\-\_\-t length)}\label{fs_8h_ad96914af4dcefc5b3d642067f2aa7ad4}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Header file for file system. \begin{DoxyAuthor}{Author}
Ricky Hariady (\href{mailto:ricky.hariady@enter.web.id}{\tt ricky.\-hariady@enter.\-web.\-id})
\end{DoxyAuthor}
\begin{DoxyDate}{Date}
9/7/2013 
\end{DoxyDate}
